import React from "react";
import classNames from "classnames";
import "./index.less";
import Alert from "@/ui/Modal";
export default function Home(props: any) {
  const { prefixCls = "m-react-home" } = props;
  const className = classNames({
    [prefixCls]: true,
  });
  const onclick = () => {
    Alert({
      title: "确定删除该地址吗？",
      message: "有这个功能呢",
      onConfirm: () => {
        console.log("onConfirm");
      },
      onCancel: () => {
        console.log("onCancel");
      },
    });
  };
  return (
    <div className={className} onClick={onclick}>
      Demo
    </div>
  );
}
